package data.dto;

import java.sql.Timestamp;
import java.text.DecimalFormat;

public class UserDTO {
	private int id;
	private short userType;
	private String userName;
	private String password;
	private String name;
	private String address;
	private String phone;
	private double overTime;
	private int createdBy;
	private Timestamp createdOn;
	private int modifiedBy;
	private Timestamp modifiedOn;
	private short status;
	private short userrank;
	private int days;
	private int managerid;

	public UserDTO(int id, short userType, String userName, String password,
			String name, String address, String phone, double overTime,
			int createdBy, Timestamp createdOn, int modifiedBy,
			Timestamp modifiedOn, short status, short userrank, int days,
			int managerid) {
		super();
		this.id = id;
		this.userType = userType;
		this.userName = userName;
		this.password = password;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.overTime = overTime;
		this.createdBy = createdBy;
		this.createdOn = createdOn;
		this.modifiedBy = modifiedBy;
		this.modifiedOn = modifiedOn;
		this.status = status;
		this.userrank = userrank;
		this.days = days;
		this.managerid = managerid;
	}

	public UserDTO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public int getDays() {
		return days;
	}

	public int getManagerid() {
		return managerid;
	}

	public void setManagerid(int managerid) {
		this.managerid = managerid;
	}

	public void setDays(int days) {
		this.days = days;
	}

	public short getUserrank() {
		return userrank;
	}

	public void setUserrank(short userrank) {
		this.userrank = userrank;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public short getUserType() {
		return userType;
	}

	public void setUserType(short userType) {
		this.userType = userType;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public double getOverTime() {
		return Double.parseDouble(new DecimalFormat("#.0").format(this.overTime));
	}

	public void setOverTime(double overTime) {
		this.overTime = overTime;
	}

	public int getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(int createdBy) {
		this.createdBy = createdBy;
	}

	public Timestamp getCreatedOn() {
		return createdOn;
	}

	public void setCreatedOn(Timestamp createdOn) {
		this.createdOn = createdOn;
	}

	public int getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(int modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	public Timestamp getModifiedOn() {
		return modifiedOn;
	}

	public void setModifiedOn(Timestamp modifiedOn) {
		this.modifiedOn = modifiedOn;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "UserDTO [id=" + id + ", userType=" + userType + ", userName="
				+ userName + ", password=" + password + ", name=" + name
				+ ", address=" + address + ", phone=" + phone + ", overTime="
				+ overTime + ", createdBy=" + createdBy + ", createdOn="
				+ createdOn + ", modifiedBy=" + modifiedBy + ", modifiedOn="
				+ modifiedOn + ", status=" + status + ", userrank=" + userrank
				+ ", days=" + days + "]";
	}

}
